#pragma once

#include "includeBase.h"

class GraphicsBox : public QGraphicsRectItem
{
public:
    GraphicsBox(QGraphicsItem* parent, int index);
    ~GraphicsBox() override;

public: // QGraphicsItem Overrids
    // QRectF boundingRect() const override;
    void paint(
        QPainter* painter,
        const QStyleOptionGraphicsItem* option,
        QWidget* widget = nullptr
    ) override;

public: // Properties
    void updateScaleRate(double scaleRate);
    // int index() const;
    // void setIndex(int index);
protected: // Fields
    int index_;
    double scaleRate_;
};
